package com.base.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.base.mapper.voipmapper.TrendsMapper;
import com.base.po.voip.Trends;
import com.base.service.TrendsService;
import com.base.utils.Page;

@Service("trendsService")
public class TrendsServiceImpl implements TrendsService{

	@Autowired
	private TrendsMapper trendsMapper;
	
	@Override
	public int deleteByPrimaryKey(String id) {
		return trendsMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Trends record) {
		return trendsMapper.insert(record);
	}

	@Override
	public int insertSelective(Trends record) {
		return trendsMapper.insertSelective(record);
	}

	@Override
	public Trends selectByPrimaryKey(String id) {
		return trendsMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(Trends record) {
		return trendsMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Trends record) {
		return trendsMapper.updateByPrimaryKey(record);
	}

	@Override
	public int countByAll(String mobile, String time, String sotreid) {
		return trendsMapper.countByAll(mobile, time, sotreid);
	}

	@Override
	public List<Trends> selectByAll(Page page, String mobile, String time, String sotreid) {
		return trendsMapper.selectByAll(page, mobile, time, sotreid);
	}

	@Override
	public List<Trends> selectByTrends(Trends record) {
		return trendsMapper.selectByTrends(record);
	}
}
